:root {
    --primary-color: #007bff;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --mobile-color: #4CAF50;
    --desktop-color: #2196F3;
    --background-color: #f5f5f5;
    --text-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --expand-scale: 1.02;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--background-color);
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    background-color: var(--primary-color);
    color: white;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.software-list {
    display: grid;
    gap: 15px;
}

.software-item {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 2px 4px var(--shadow-color);
    cursor: pointer;
    transform: scale(1);
    transition: 
        transform 0.3s var(--ease-out-quint),
        box-shadow 0.3s var(--ease-out-quint);
}

.software-item:active {
    transform: scale(var(--expand-scale));
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.software-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.software-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.software-details {
    will-change: height;
    height: 0;
    overflow: hidden;
    transition: height 0.4s var(--ease-out-quint);
}

.software-details.active {
    height: var(--content-height);
}

.description {
    color: #666;
    margin-bottom: 15px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 20px 8px 40px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
    display: inline-block;
    position: relative;
    min-height: 40px;
}

.btn:hover {
    opacity: 0.9;
}

.mobile-download-btn {
    background-color: var(--mobile-color);
    color: white;
}

.mobile-download-btn::before {
    content: "📱";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.desktop-download-btn {
    background-color: var(--desktop-color);
    color: white;
}

.desktop-download-btn::before {
    content: "💻";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.repo-btn {
    background-color: var(--info-color);
    color: white;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 2rem;
    }

    .software-name {
        font-size: 1.1rem;
    }

    .software-item:active {
        transform: scale(1.01);
    }

    .btn {
        padding: 8px 15px 8px 35px;
        font-size: 0.9rem;
    }

    .mobile-download-btn::before,
    .desktop-download-btn::before {
        left: 10px;
    }
}